#ifndef CODESHARE_H
#define CODESHARE_H

#include <QtGui>
#include "codeeditor.h"
#include "highlighter.h"
#include "constant.h"
#include "links.h"

class CodeShare: public QWidget
{
    Q_OBJECT
public:
    CodeShare(Links *link, QWidget *parent = 0);
    ~CodeShare();

private:
    Links *m_link;
    qint32 m_state;
    QString m_account;
    QString m_nickName;
    QPushButton *submitPushButton;
    QPushButton *okPushButton;
    CodeEditor *codeEditor;
    QPlainTextEdit *inputEdit;
    Highlighter *highlighter;

public slots:
    void submitPushButtonClicked();
    void okPushButtonClicked();
    void result(qint32 replyKind);
    void setState(qint32 state);
    void setAccount(QString account);
    void setNickName(QString nickName);
};

#endif